package com.coin.feign;


import com.coin.dto.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.*;

/**
 * @Auther: 李 力
 * @Date: 2025/6/9
 * @Description: com.coin.feignclient
 * @version: 1.0
 */
@FeignClient(value = "member-service")
public interface SysMemberFeignClient {

    @GetMapping("/users/basic/users")
    public List<UserDto> getBasicUsers(@RequestParam("ids") List<Long> ids);

    @GetMapping("/users/basic/users2")
    public Map<Long, UserDto> getBasicUsers2(@RequestParam(value = "ids", required = false) List<Long> ids,
                                             @RequestParam(value = "userName", required = false) String userName,
                                             @RequestParam(value = "mobile", required = false) String mobile
    );

    @GetMapping("/userBanks/info/{userId}")
    UserBankDto getUserBankInfo(@PathVariable Long userId);
}
